﻿using System;
using Community.CsharpSqlite.WP.SqliteDataProvider.Base;

namespace Community.CsharpSqlite.WP.SqliteDataProvider
{
    public interface IDbConnection
    {
        IDbTransaction BeginTransaction(IsolationLevel iso);
        IDbTransaction BeginTransaction();
        bool ChangeDatabase(string newdb);
        void Close();
        IDbCommand CreateCommand();
        void Open();

        // properties
        string ConnectionString { get; set; }
        int ConnectionTimeout { get; set; }
        string Database { get; set; }
        ConnectionState State { get; }
    }



}